<template>
  <div class="all">
    <ul>
      <li>红包设置</li>
    </ul>
    <div class="R-body">
      <table width="100%">
        <tbody>
          </tr>
          <tr v-for="(val, index) in list">
            <td class="R-right">{{val.name}}</td>
            <td><input type="text" size="3" v-model="val.time">分钟获得1个红包， 每天最多<input type="text" size="3" v-model="val.number">个
          </td>
          </tr>
           <tr>
             <td class="R-right">会员送出</td>
             <td><input type="text" size="3" v-model="Vip.number">红包， 富豪等级相应提高<input type="text" size="3" v-model="Vip.exp">币</td>
           </tr>
           <tr>
             <td class="R-right">签约主播</td>
             <td><input type="text" size="3" v-model="anchor.number">红包，兑换<input type="text" size="3" v-model="anchor.coin">币</td>
           </tr>
        </tbody>
      </table>


    </div>
    <button @click="subim()">提交</button>
    </div>
  </div>
</template>

<script>
   export default {
      data() {
        return {
          list:[
            {
              name:'普通用户每',
              time:5,
              number:55
            },
            {
              name:'VIP用户每',
              time:1,
              number:65,
            }
          ],
          Vip:{
            number:10,
            exp:10
          },
          anchor:{
            number:10,
            coin:10
          }

        }
      },
      methods: {
subim(){
  var data=[this.list,this.Vip,this.anchor]


  console.log(data)
}
      }
    };
</script>

<style scoped>
ul{
      display: flex;
      height: 33px;
      position: relative;
      bottom: -1px;
      z-index: 9;
}
li{
      height: 32px;
      padding: 0 8px;
      line-height: 32px;
      color: #333333;
      border-left: 1px solid #dce3ed;
      border-top: 1px solid #dce3ed;
      border-right: 1px solid #dce3ed;
      margin-left: 15px;
      background-color: #FFFFFF;
}
.R-body{
      border: 1px solid #dce3ed;
      width: 97%;
      padding: 10px;
      overflow: hidden;
}
td{
   border-bottom: 1px solid #dce3ed;
   font-size: 16px;
}
.R-right{
  text-align: right;
padding-right: 10px;
  color: #777;
}
button{
  margin-top: 10px;
  margin-left: 10px;
}
</style>
